package com.easylinkin.linkappapi.grid.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easylinkin.linkappapi.grid.entity.GridReportWeek;
import com.easylinkin.linkappapi.grid.models.dto.GridReportWeekSaveDTO;
import com.easylinkin.linkappapi.grid.models.query.GridReportWeekQuery;
import com.easylinkin.linkappapi.grid.models.vo.GridReportWeekInfoVO;
import com.easylinkin.linkappapi.grid.models.vo.GridReportWeekListVO;

/**
 * 网格周报表 服务类
 *
 * @author kuyujie
 * @since 2024-05-17
 */
public interface IGridReportWeekService extends IService<GridReportWeek> {
    /**
     * page
     *
     * @param page
     * @param query
     * @return IPage<GridReportWeekListVO>
     * @author kyj
     * @date 2024/5/16 18:36
     */
    IPage<GridReportWeekListVO> pageList(IPage<?> page, GridReportWeekQuery query);

    /**
     * list
     *
     * @param query
     * @return byte[]
     * @author kyj
     * @date 2024/5/29 19:35
     */
    byte[] export(GridReportWeekQuery query);

    /**
     * 保存数据
     *
     * @param dto
     * @return boolean
     * @author kyj
     * @date 2024/5/16 18:36
     */
    void saveData(GridReportWeekSaveDTO dto);

    /**
     * 获取详情
     *
     * @param id
     * @return GridReportWeekInfoVO
     * @author kyj
     * @date 2024/5/17 19:01
     */
    GridReportWeekInfoVO getInfo(Long id);
}